package com.syni.mdd.yhd.common.all.listen.shopAssistant;

import com.syni.mdd.yhd.common.all.entity.BmsBusiness;
import com.syni.mdd.yhd.common.all.entity.BmsUserBusiness;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @className AssistantEvent
 * @description TOO
 * @Author cfx
 * @DATE 2019/11/4 9:31
 * @VERSION 1.0
 **/
@Data
public class AssistantEvent extends ApplicationEvent {
    private  BmsUserBusiness bmsUserBusiness;
    private  BmsBusiness bmsBusiness;
    private Integer businessId;
    private Integer assistantId;
    private Integer assistantRoleId;
    private Integer userId;
    private String gid;
    public AssistantEvent(Object source) {
        super(source);
    }

    public AssistantEvent(Object source, BmsUserBusiness bmsUserBusiness, BmsBusiness bmsBusiness) {
        super(source);
        this.bmsUserBusiness = bmsUserBusiness;
        this.bmsBusiness = bmsBusiness;
    }

    public AssistantEvent(Object source,Integer userId, Integer businessId, Integer assistantId,Integer assistantRoleId) {
        super(source);
        this.userId = userId;
        this.businessId = businessId;
        this.assistantId = assistantId;
        this.assistantRoleId = assistantRoleId;
    }

    public AssistantEvent(Object source,Integer userId, Integer businessId, Integer assistantId,String gid) {
        super(source);
        this.userId = userId;
        this.businessId = businessId;
        this.assistantId = assistantId;
        this.gid = gid;
    }
}
